import request from "@/utils/request";

// 注册接口
export const getUserRegist = (data) => {
    return request({
        url: '/user/register',
        method: 'post',
        params: {
            username: data.username,
            password: data.password,
            email: data.email,
            avatar: data.avatar,
            phone: data.phone,
            majorId: data.majorId,
            role: data.role
        }
    });
}